package Lecel03;

public class Two {
    public static void main(String[] args) {
        String str = "1";
        long start = System.currentTimeMillis();
        for (int i = 0; i < 10000; i++) {
            str = str + "1";
        }
        long end = System.currentTimeMillis();
        System.out.println(end - start);
        System.out.println("=======");
        long start1 = System.currentTimeMillis();
        StringBuilder sb = new StringBuilder("1");
        for (int i = 0; i < 10000; i++) {
            sb.append("1");
        }
        long end1 = System.currentTimeMillis();
        System.out.println(end1 - start1);
    }
}
